package com.xh.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xh.common.ResultCode;
import com.xh.service.HelloWoldService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

@Api(value="初始测试",description="初始测试")
@Controller
@RequestMapping("/hello")
public class HelloWorldController {
 
	@Autowired
	private HelloWoldService helloWoldService;
	
	@ApiOperation(value="查询用户列表",notes="查询用户列")
	@ApiImplicitParam(name="",value="",required=false,dataType="")
	@RequestMapping(value="/test/0",method=RequestMethod.POST)
	@ResponseBody
	public ResultCode helloWord(){
		return helloWoldService.getUserList();
	}
}
